package top.milkbox.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Data;
import top.milkbox.domain.base.UserBase;

/**
 * @TableName tb_user
 */
@TableName(value = "tb_user")
@Data
public class User extends UserBase implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer userId;

    /**
     *
     */
    private String userUsername;

    /**
     *
     */
    private String userPassword;

    /**
     *
     */
    private String userEmail;

    /**
     *
     */
    private String userPhone;

    /**
     *
     */
    private String userRegisterTime;

    /**
     *
     */
    private String userNickname;

    /**
     * 用户头像图片名
     */
    private String userAvatar;


    /**
     * 是否为管理员，true为是，false为不是
     */
    // TODO 逐步删除这个字段
//    private String userAdmin;

    /**
     * 用户角色外键
     */
    private Integer userRoleId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}